import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import '@/assets/style.css';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// 导入进度条
import '@/utils/nprogress';
import pinia from './stores';
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component);
}
// 分页组件
import pagination from '@/components/pagination.vue';
app.component('pagination', pagination);

app.use(pinia);
app.use(router);
app.use(ElementPlus, {
	locale: zhCn,
	size: 'default',
});
app.mount('#myapp');
